<template>
  <div id="artist-header">
    <div class="img-container">
      <img :src="artistInfo && artistInfo.img1v1Url" alt="">
    </div>
    <div class="content">
      <div class="title">
        <span>歌手</span>
        <span>{{ artistInfo && artistInfo.name }}</span>
      </div>
      <div class="count">
        <div>
          <i class="iconfont icon-yinle"></i>
          单曲数: {{ artistInfo && artistInfo.musicSize }}
        </div>
        <div>
          <i class="iconfont icon-zhuanji"></i>
          专辑数: {{ artistInfo && artistInfo.albumSize }}
        </div>
        <div>
          <i class="iconfont icon-mv"></i>
          MV数: {{ artistInfo && artistInfo.mvSize }}
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ArtistHeader',
  props: {
    artistInfo: {
      type: Object,
      default () {
        return {}
      }
    }
  }
}
</script>

<style scoped lang="less">
#artist-header {
  padding: 30px 30px 0 30px;
  display: flex;
  .img-container {
    width: 220px;
    height: 220px;
    img {
      width: 100%;
      border: 1px solid #ddd;
    }
  }
  .content {
    padding-left: 30px;
    flex: 1;
    .title {
      span:nth-of-type(1) {
        font-size: 13px;
        padding: 4px 7px;
        color: #fff;
        background-color: #c62f2f;
      }
      span:nth-of-type(2) {
        padding-left: 10px;
        font-size: 20px;
      }
    }
    .count {
      margin-top: 30px;
      > div {
        color: #787e83;
        font-size: 13px;
        line-height: 25px;
      }
    }
  }
}
</style>
